package cn.javass.dp.chianofresponsibility.example6;

public class SaleSecurityCheck extends SaleHandle{
    @Override
    public boolean sale(String user, String customer, SaleModel saleModel) {
        if ("小李".equals(user)) {
            return this.successor.sale(user,customer,saleModel);
        } else {
            System.out.println("对不起"+user+"您没有权限检查数据");
        }
        return false;
    }
}
